package com.hqyj.repertory.service.impl;

import com.hqyj.repertory.mapper.OutRepertoryMapper;
import com.hqyj.repertory.model.OutRepertory;
import com.hqyj.repertory.service.OutRepertoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class OutRepertoryServiceIml implements OutRepertoryService {
    @Autowired
    OutRepertoryMapper outRepertoryMapper;
    @Override
    public ArrayList<OutRepertory> queryAllOutRepertory() {
        return outRepertoryMapper.queryAllOutRepertory();
    }

    @Override
    public OutRepertory queryOutRepertoryById(int id) {
        return outRepertoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public void updateOutRepertory(OutRepertory outRepertory) {
        outRepertoryMapper.updateByPrimaryKeySelective(outRepertory);
    }

    @Override
    public ArrayList<OutRepertory> queryOutRepertoryCondition() {
        return outRepertoryMapper.queryOutRepertoryCondition();
    }

    @Override
    public void updateOutRepertoryExceptType(OutRepertory outRepertory) {
        outRepertoryMapper.updateOutRepertoryExceptType(outRepertory);
    }
}
